package com.zdy.im.enums;

public enum ImMessageTypeEnum implements IMessageType{
    Group(0, "群聊"),
    Single(1, "单聊"),
    JOIN_FRIEND(2, "申请加好友"),
    JOIN_ROOM(3, "申请加入群"),
    READ(4, "已读"),
    ROOM_READ(5, "群聊已读"),
    AGREE_FRIEND(6, "同意通过添加好友"),

    ;

    private int key;
    private String name;

    ImMessageTypeEnum(int key, String name) {
        this.key = key;
        this.name = name;
    }

    public int getKey() {
        return key;
    }

    @Override
    public int getType() {
        return key;
    }

    public void setValue(int key) {
        this.key = key;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
